#define _CRT_SECURE_NO_WARNINGS 1

#include"signallist.h"

int main()
{
	SLNode* phead = NULL;
	SLNPushBack(&phead, 1);
	SLNPushBack(&phead, 2);
	SLNPushBack(&phead, 3);
	SLNPushBack(&phead, 4);
	SLNPrint(phead);

	SLNode* pos = SLNFind(phead, 3);
	SLNInsert(&phead, pos, 5);
	SLNPrint(phead);

	pos = SLNFind(phead, 1);
	SLNInsert(&phead, pos, 6);
	SLNPrint(phead);

	pos = SLNFind(phead, 2);
	SLNErase(&phead, pos);
	SLNPrint(phead);

	pos = SLNFind(phead, 6);
	SLNErase(&phead, pos);
	SLNPrint(phead);

	SLNDestroy(&phead);

	//SLNPushFront(&phead, 5);
	//SLNPushFront(&phead, 6);
	//SLNPushFront(&phead, 7);
	//SLNPrint(phead);

	/*SLNPopBack(&phead);
	SLNPopBack(&phead);
	SLNPopBack(&phead);
	SLNPrint(phead);

	SLNPopFront(&phead);
	SLNPrint(phead);*/

	return 0;
}

